package com.java2_22_1;

public class Round extends Shape {
    private double r;
    public static final double pi = 3.14;

    public Round() {
    }

    public Round(double r) {
        this.r = r;
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    @Override
    public double getArea() {
        return pi * Math.pow(this.r, 2);
    }

    @Override
    public double getCircumference() {
        return 2 * pi * this.r;
    }
}
